
#设计一个类
class Student:
    name=None
    gender=None
    nationality=None
    native_place=None
    age=None

#创建一个对象
stu1=Student()

#对对象属性进行赋值
stu1.name="吴彦祖"
stu1.gender="男"
stu1.nationality="中国"
stu1.native_place="安徽"
stu1.age=29

#打印对象的信息
print(stu1.name)
print(stu1.gender)
print(stu1.nationality)
print(stu1.native_place)
print(stu1.age)